package com.air.common.util;

import java.util.*;

public class QueryExpression {
	
	public static final String LIKE = "LIKE";
    public static final String EQUALS = "=";
    public static final String NOT_EQUALS = "<>";
    public static final String GT = ">";
    public static final String GE = ">=";
    public static final String LT = "<";
    public static final String LE = "<=";
    public static final String IN = "in";
    public static final String NOT_IN = "not in";
    public static final String IS="is";
    public static final String IS_NOT="is not";
    
    public static final String MANUAL="MANUAL";
    
    private String propertyName;
    private String propertyValue;
    private List<?> propertyValueList;
    private String operator;
    private String manualString;
    
    
    public QueryExpression() {

    }
    
    public QueryExpression(String aPropertyName,
                           String aPropertyValue,
                           String aOperator) {

        this.propertyName = aPropertyName;
        this.propertyValue = aPropertyValue;
        this.operator = aOperator;
    }

    public String getPropertyName() {
        return this.propertyName;
    }

    public String getPropertyValue() {
        return this.propertyValue;
    }


    public String getOperator() {
        return this.operator;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public void setPropertyValue(String propertyValue) {
        this.propertyValue = propertyValue;
    }


    public void setOperator(String operator) {
        this.operator = operator;
    }
    
    
    
    public List<?> getPropertyValueList() {
		return propertyValueList;
	}

	public void setPropertyValueList(List<?> propertyValueList) {
		this.propertyValueList = propertyValueList;
	}

	public String getColumnName(){
		return CamelFormatUtil.reverseCamel(this.propertyName);
	}

    public String getManualString()
    {
        return manualString;
    }

    public void setManualString(String manualString)
    {
        this.manualString = manualString;
    }
    
}
